function start_luck()
{
	$('#zhizhen').html('<img src="images/quick.gif" width="300" height="300" />');
	var mes;
	var info_header='';
	var info_footer='';
	var jiantou='png0';
	setTimeout(function(){
							$.ajax({
							url: "luck.php",
							data: null,
							dataType: "json",
							async: false,
							success: function(data){
								data=eval(data);
								switch(data.jiangpin)
								{
									case 0:
										info_header='请您先注册，再抽奖';
										break;
									case 1:
										jiantou="png1";
										info_header='恭喜您中了一等奖';
										info_footer='奖品为'+data.cartype+'购车优惠代金卷';
										break;
									case 2:
										jiantou="png2";
										info_header='恭喜您中了二等奖';
										info_footer='奖品为购车送价值899元蒙派克E级车模1个';
										break;
									case 3:
										jiantou="png3";
										info_header='恭喜您中了三等奖';
										info_footer='奖品为精品钱包1个';
										break;
									case 4:
										jiantou="png4";
										info_header='恭喜您中了四等奖';
										info_footer='奖品为车载香水1个';
										break;
									case 5:
										jiantou="png5";
										info_header='恭喜您中了五等奖';
										info_footer='奖品为精品钥匙包1个';
										break;
									case 6:
										jiantou="png6";
										info_header='恭喜您中了六等奖';
										info_footer='奖品为双色球彩票5注，有机会中得500万';
										break;
									case 7:
										info_header='您已经抽过奖了';
										break;
									case 8:
										info_header='系统忙，请您稍后再试';
										break;
									default:
										jiantou="png7";
										info_header='谢谢您的参与';
								}
								$('#zhizhen').html('<div class="'+jiantou+'"></div>');
								setTimeout(function(){
										if(data.jiangpin==1 || data.jiangpin==2 || data.jiangpin==3 || data.jiangpin==4 || data.jiangpin==5 || data.jiangpin==6)
										{
											$('.tishi .content').html(info_header);
											$('.tishi .jihui').html(info_footer);
											$('.tishi').show();	
										}
										else
										{
											alert(info_header);	
										}
									},300);
							}
						});
				},3000);
}

function close_pop()
{
	$('.tishi').hide();	
}